using System;
using FBGraph.Models;

namespace FBGraph.Controllers
{
    /// <summary>The events this user is attending. Requires the user_events or friend_events permission</summary>
    public partial class EventsController : FBGraphController, IFBGraphConnectionController<Event>
    {
        /// <summary>Initializes an instance of <see cref="EventsController" />.</summary>
        public EventsController(IFBGraphContext context)
            : base(context)
        {
        }
        
        /// <summary>Gets the name of the connection the <see cref="EventsController" /> handles requests for.</summary>
        String IFBGraphConnectionController<Event>.ConnectionName
        {
            get
            {
                return "events";
            }
        }
    }
}